package com.addplus.townmall.server.api.model.town;

import com.baomidou.mybatisplus.annotation.TableName;
import com.addplus.townmall.server.api.model.base.BaseRestModel;
import com.baomidou.mybatisplus.annotation.TableField;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 积分获取规则表
 * </p>
 *
 * @author zhangjiehang
 * @since 2018-08-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("integral_rule")
public class IntegralRule extends BaseRestModel {

    private static final long serialVersionUID = 1L;

    /**
     * 积分规则名称
     */
    private String name;
    /**
     * 类型
     */
    private Integer type;
    /**
     * 周期(0则代表不限制)
     */
    private Integer cycle;
    /**
     * 限制次数(0则代表不限制)
     */
    @TableField("limit_count")
    private Integer limitCount;
    /**
     * 兑换类型(0:积分 1:现金)
     */
    @TableField("exchange_coin")
    private Integer exchangeCoin;
    /**
     * 兑换类型(0:固定比例  1:消费金额比例)
     */
    @TableField("exchange_type")
    private Integer exchangeType;
    /**
     * 兑换数量或比例
     */
    @TableField("integral_count")
    private Integer integralCount;
    /**
     * 备注
     */
    private String remark;
    /**
     * 是否删除(0:否 1:是)
     */
    @TableField("is_delete")
    private Integer isDelete;


}
